#include <stdio.h>
#include "head.h"

int main()
{
    int a = 20;
    int b = 12;
    printf("a = %d, b = %d\n", a, b);
    printf("a + b = %d\n", add(a, b));
    printf("a - b = %d\n", subtract(a, b));
    printf("a * b = %d\n", multiply(a, b));
    printf("a / b = %f\n", divide(a, b));
    return 0;
}

// gcc -I ./include/ -L ./lib/ -l calc -o app main.c
// gcc -o app main.c -I ./include/ -L ./lib/ -l calc   // -l calc 必须在最后
// export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/sc/learn_cpp_proj/cpp_learn/20250418/static_lib/lib  追加加入  ~/.bashrc  然后 source ~/.bashrc
// 加入 /etc/profile 中也行